package GUI;



import javax.swing.*;
import java.awt.*;
/**
 * This class creates instance of loginPanel	
 * to display when needed
 * @author Elad
 *
 */
public class Login extends JPanel{
	private static final long serialVersionUID = 1L;
	private JTextArea textArea;
	private JButton btnCancel;
	private JButton btnSubmit;
	private JLabel lblNewLabel;
	private JPasswordField passwordField;
	
	/**
	 * the constructor
	 */
	public Login() {
		super();
		textArea = new JTextArea();
		initialize();
		}
	
	/**
	 * This method initializes loginPanel
	 */
	public void initialize(){
		JLabel lblLogInWindow = new JLabel("LOG IN window");
		lblLogInWindow.setForeground(Color.BLUE);
		lblLogInWindow.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblLogInWindow.setBounds(162, 31, 247, 50);
		add(lblLogInWindow);
		
		JLabel lblUserName = new JLabel("User Name:");
		lblUserName.setFont(new Font("Arial", Font.BOLD, 13));
		lblUserName.setBounds(23, 139, 86, 50);
		add(lblUserName);
		
		textArea.setBounds(162, 149, 207, 40);
		add(textArea);
		textArea.setColumns(10);
		
		JLabel lblPassword = new JLabel("Password:");
		lblPassword.setFont(new Font("Arial", Font.BOLD, 13));
		lblPassword.setBounds(23, 195, 81, 60);
		add(lblPassword);
		
		setLayout(null);
		setSize(new Dimension(500, 350));	
		
		btnCancel = new JButton("Cancel");
		btnCancel.setIcon(new ImageIcon(Login.class.getResource("/Picture/Button-Close-icon.png")));
		btnCancel.setBounds(20, 292, 141, 47);
		add(btnCancel);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(Login.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(324, 292, 141, 47);
		add(btnSubmit);
		
		lblNewLabel = new JLabel("New label");
		lblNewLabel.setIcon(new ImageIcon(Login.class.getResource("/Picture/Log-Out-icon.png")));
		lblNewLabel.setBounds(10, 11, 120, 128);
		add(lblNewLabel);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(162, 200, 207, 40);
		add(passwordField);
	}
	
	/**
	 * 
	 * @return JTextArea with the user name
	 */
	public JTextArea getTextArea_userName(){
		return textArea;
	}
	/**
	 * 
	 * @param text to set the user-name textArea
	 */
	public void setTextArea_userName(String text){
		textArea.setText(text);
	}
	/**
	 * 
	 * @return JTextArea with the password
	 */

	public JTextArea getTextArea() {
		return textArea;
	}

	public void setTextArea(JTextArea textArea) {
		this.textArea = textArea;
	}

	public JButton getBtnCancel() {
		return btnCancel;
	}

	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}

	public JButton getBtnSubmit() {
		return btnSubmit;
	}

	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}

	public JLabel getLblNewLabel() {
		return lblNewLabel;
	}

	public void setLblNewLabel(JLabel lblNewLabel) {
		this.lblNewLabel = lblNewLabel;
	}

	public JPasswordField getPasswordField() {
		return passwordField;
	}

	public void setPasswordField(JPasswordField passwordField) {
		this.passwordField = passwordField;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	/**
	 * 
	 * @param text1 to set the password textArea
	 */
	
	
	/**
	 * 
	 * @return the submit button
	 */

	
	/**
	 * 
	 * @return the cancel button
	 */

}
	
